from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import Qt
from ..widgets.msg_header import MsgHeader
from ..widgets.msg_main import MsgMain
from ..widgets.msg_newsbar import MsgNewspanel
from ..widgets.brass_plate import BrassButton

class MessageScreen(QtGui.QWidget):
	def __init__(self, *args, **kw):
		QtGui.QWidget.__init__(self, *args, **kw)
		self.setGeometry(0,0,1024,768)

		hdr = MsgHeader(self)
		hdr.move(0,0)

		main = MsgMain(self)
		main.move(269,125)

		news = MsgNewspanel(self)
		news.move(15,125)

		morn = BrassButton(self)
		morn.set_text("Morning")
		morn.move(16, 695)

		morn = BrassButton(self)
		morn.set_text("Afternoon")
		morn.move(146, 695)

		morn = BrassButton(self)
		morn.set_text("Evening")
		morn.move(16, 730)

		morn = BrassButton(self)
		morn.set_text("Night")
		morn.move(146, 730)


if __name__ == "__main__":
	import sys
	from PyQt4.QtGui import QApplication
	app = QtGui.QApplication(sys.argv)

	font_db = QtGui.QFontDatabase()
	font_db.addApplicationFont("resources/Gabrielle.ttf")

	top = QtGui.QLabel()
	top.setGeometry(0, 0, 1024, 768)
	path = "resources/wood.jpg"
	top.setPixmap(QtGui.QPixmap(path))

	MessageScreen(top)

	top.show()
	sys.exit(app.exec_())


